const initState = []
export default function tableDataReducer(preState = initState, action) {
  const { type, data } = action
  // console.log('22222',data);
  switch (type) {
    case 'getData':
      return [...data]
    default:
      return preState
  }
}
const initCount=0
export  function tableCountReducer(preState = initCount, action) {
  const { type, data } = action
  switch (type) {
    case 'count':
      return data
    default:
      return preState
  }
}